package com.fancy.projecty;

//import org.mybatis.spring.annotation.MapperScan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import org.springframework.cache.annotation.EnableCaching;


@SpringBootApplication
@MapperScan("com.fancy.projecty.mapper")
@EnableCaching
@EnableSwagger2
public class ProjectyApplication extends SpringBootServletInitializer {


	public static void main(String[] args) {

		SpringApplication.run(ProjectyApplication.class, args);
		System.err.println("项目启动成功了");
		System.err.println("http://localhost:8080/swagger-ui.html");
	}


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ProjectyApplication.class);
	}

}
